package com.health.db.service.sm;

import java.util.List;

import com.health.db.model.GoodsOrder;
import com.health.db.model.GoodsOrderContact;
import com.health.db.model.GoodsOrderExample;
import com.health.db.model.UserAccountLedger;

public interface IGoodsOrderService {
	
	GoodsOrder insert(GoodsOrder record);
	
	GoodsOrder insertCourse(GoodsOrder record,GoodsOrderContact contactRecord);
	
	int update(GoodsOrder record);
	
	GoodsOrder selectByPrimaryKey(Long recid);
	
	GoodsOrder updateOrder4Payment(GoodsOrder  record,UserAccountLedger userAccountLedger,int type,String out_trade_no);
	
	GoodsOrderExample updateOrder4Payment(GoodsOrder  record,String out_trade_no);
	
	List<GoodsOrder> selectByUserId(Long userId, Long goodsId);
	
	 List<GoodsOrder> selectByUserIdAndType(GoodsOrderExample example) ;
}
